project(lidar.record)
find_package(PCL COMPONENTS common io QUIET REQUIRED)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(/home/young/vincent/lidar_test/lidar-record/src/lidar/apollolidar/lib/${CMAKE_SYSTEM_PROCESSOR})
add_executable(${PROJECT_NAME} main.cpp Recorder.cpp SyncUdpClient.cpp)

target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17 )
target_link_libraries(${PROJECT_NAME} PRIVATE  lpc.lidar lpc.message lpc.util AEyeSensorSDK)
target_link_libraries(${PROJECT_NAME} PUBLIC  pthread protobuf dw)
target_link_libraries(${PROJECT_NAME} PUBLIC  ${PCL_LIBRARIES} )

set_target_properties( ${PROJECT_NAME}
    PROPERTIES
    RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
)

